<template>
    <div id="app">
        <router-view />
    </div>
</template>

<script>
    import {setFont,destorySetFont} from '@/utils/viewport';
    export default {
        name: 'app',
        beforeMount() {
            //设置字体
            setFont(750);
        },
        beforeDestroy() {
            destorySetFont();
        }
    }
</script>